module idleRamPicker (
    input wire [3:0] ram_idle, 
    output wire [3:0] pick_ram
);
    //选择一空闲RAM
    assign pick_ram = ram_idle & (~(ram_idle-1));
endmodule